﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LANmine
{
    public partial class AdminForm : Form
    {
        private Language lmLang;

        public AdminForm()
        {
            InitializeComponent();
        }

        public AdminForm(Language lmLang)
            : this()
        {
            /** Save the language object */
            this.lmLang = lmLang;

            /** Dock the window */
            this.Dock = DockStyle.Fill;

            ApplyLanguage();
        }

        #region Language Specifications
        /**
         * MainForm::ApplyLanguage()
         * ---------------------------
         * Overwrite all text properties of all elements in all forms with the right ones.
         */
        private void ApplyLanguage()
        {
            /**
             * Header label
             */
            this.lblAdmin.Text = this.lmLang.GetString("menu.btnAdmin");


            lblUserAanpassen.Text = this.lmLang.GetString("admin.lblUserAanpassen");
            lblUserToevoegen.Text = this.lmLang.GetString("admin.lblUserToevoegen");
            lblGameAanpassen.Text = this.lmLang.GetString("admin.lblGameAanpassen");
            lblGameToevoegen.Text = this.lmLang.GetString("admin.lblGameToevoegen");
           

        }
        #endregion

        private void btnUserProfile_Click(object sender, EventArgs e)
        {
            EditUser formUserProfile = new EditUser(lmLang);
            formUserProfile.Show();
        }

        private void btnAddGames_Click(object sender, EventArgs e)
        {
            AddGames formAddGames = new AddGames(lmLang);
            formAddGames.Show();
        }
    }
}
   
